package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2019-01-01
 */
@TableName("t_signin")
public class Signin extends Model<Signin> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long uid;
	private String pdate;
	private Date signintime;

	private Double latitude;
	private Double longitude;

	private Double precision;

    /**
     * 0:普通进去1:4至10点之间的早起签到
     */
	private Integer stype;

	/**
	 * 连续签到天数
	 */
	private Integer lianxu;
	private String evtype;
	private String evtkey;
	private Long mid;
	private Long mpid;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getPdate() {
		return pdate;
	}

	public void setPdate(String pdate) {
		this.pdate = pdate;
	}

	public Date getSignintime() {
		return signintime;
	}

	public void setSignintime(Date signintime) {
		this.signintime = signintime;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getPrecision() {
		return precision;
	}

	public void setPrecision(Double precision) {
		this.precision = precision;
	}

	public Integer getStype() {
		return stype;
	}

	public void setStype(Integer stype) {
		this.stype = stype;
	}

	public String getEvtype() {
		return evtype;
	}

	public void setEvtype(String evtype) {
		this.evtype = evtype;
	}

	public String getEvtkey() {
		return evtkey;
	}

	public void setEvtkey(String evtkey) {
		this.evtkey = evtkey;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Integer getLianxu() {
		return lianxu;
	}

	public void setLianxu(Integer lianxu) {
		this.lianxu = lianxu;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Signin{" +
			"id=" + id +
			", uid=" + uid +
			", pdate=" + pdate +
			", signintime=" + signintime +
			", latitude=" + latitude +
			", longitude=" + longitude +
			", precision=" + precision +
			", stype=" + stype +
			", evtype=" + evtype +
			", evtkey=" + evtkey +
			", mid=" + mid +
			", mpid=" + mpid +
			"}";
	}
}
